package com.asset.service.imp;

import com.asset.pojo.City;
import com.asset.service.BaseService;
import com.asset.service.CityService;

import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by gongshaobo on 2017/2/17  15:47.
 */
@Service
public class CityServiceImp extends BaseService implements CityService {

	@Override
	public void addCity(City city) {
		cityMapper.addCity(city);
		
	}

	@Override
	public City getCity(Integer id) {
		 City city = cityMapper.getCity(id);
	     return city;
	}

	@Override
	public City getCityByName(String name) {
		City city = cityMapper.getCityByName(name);
	     return city;
	}

	@Override
	public List<City> listCity(String name) {
		List<City> cityList = cityMapper.listCity(name);
	     return cityList;
	}
   

}
